package com.eden.manage.mapper;

import com.eden.manage.dto.PlatDto;
import com.eden.manage.model.EdenPlat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eden.manage.req.query.PlatQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 98050
* @description 针对表【eden_plat(平台开通信息表)】的数据库操作Mapper
* @createDate 2023-10-18 11:25:33
* @Entity com.eden.manage.model.EdenPlat
*/
public interface EdenPlatMapper extends BaseMapper<EdenPlat> {

    int countByPage(@Param("query")PlatQuery query);

    List<PlatDto> selectPageList(@Param("query")PlatQuery query);

    PlatDto selectPlatById(@Param("id") Long id);

    int updateStatus(PlatDto platDto);
    int updateOpenStatus(PlatDto platDto);

    List<EdenPlat> selectAvailablePlat();

    List<EdenPlat> selectListByIds(@Param("ids") List<Long> ids);




}




